﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" SalesOrder to change the interface name "ISalesOrderServices" in both code and config file together.
    [ServiceContract]
    public interface ISalesOrderServices
    {
        [OperationContract]
        List<SalesOrderDTO> GetList(int page, out long recordCount, string sortProperty = null, string sortType = "ASC");

        [OperationContract]
        bool Save(SalesOrderDTO SalesOrder);

        [OperationContract]
        bool Delete(SalesOrderDTO SalesOrder);

        [OperationContract]
        List<SalesOrderDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                              out long recordCount);

        [OperationContract]
        List<SalesOrderDTO> GetAllSalesOrder();

        [OperationContract]
        SalesOrderDTO GetSalesOrder(string kodeSalesOrder);

        [OperationContract]
        List<SalesOrderDTO> GetSalesOrderList(string kodeSalesOrder);

        [OperationContract]
        string GetLastSONo(CostCenterDTO costCenter, string Tipe);

        [OperationContract]
        bool DeleteDetail(SalesOrderDetailDTO salesOrderDetailDTO);

        [OperationContract]
        List<SalesOrderDTO> GetSalesOrderListByCostCenter(CostCenterDTO costCenterDto);

        [OperationContract]
        bool SendEmail(SalesOrderDTO obj, String DestinationFolder);
    }
}